<template>
	<view>
		
		<view>
			<jonej-Keyboard @numberInputResult="numberInputResult" :defaultStr="defaultNum"></jonej-Keyboard>
		</view>
		<view class="confirm">
			<button @click="confirm">演示效果</button>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				defaultNum: ''
			};
		},
		mounted() {},
		methods: {
			confirm() {
				uni.showToast({
					title: '确定车牌为：' + this.defaultNum,
					icon: 'none',
					duration: 2000
				})
			},
			numberInputResult(e) {
				this.defaultNum = e
			}
		}
	}
</script>

<style lang="scss">
	.confirm {
		margin: 150upx 20upx;
	}
</style>